apiVersion: v1
items:
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    labels:
      app: the-new-hotness
      service: the-new-hotness
    name: the-new-hotness
  spec:
    replicas: 1
    selector:
      deploymentconfig: the-new-hotness
    strategy:
      activeDeadlineSeconds: 21600
      recreateParams:
        timeoutSeconds: 600
      type: Recreate
    template:
      metadata:
        creationTimestamp: null
        labels:
          app: the-new-hotness
          deploymentconfig: the-new-hotness
      spec:
        containers:
        - name: the-new-hotness
          image: the-new-hotness/the-new-hotness:latest
          command: ["fedora-messaging", "consume"]
          env:
            - name: RPM_PACKAGER
              value: hotness
          volumeMounts:
            - name: keytab-volume
              mountPath: /etc/keytabs
              readOnly: true
            - name: config-volume
              mountPath: /etc/fedora-messaging
              readOnly: true
            - name: fedora-messaging-ca-volume
              mountPath: /etc/pki/rabbitmq/ca
              readOnly: true
            - name: fedora-messaging-key-volume
              mountPath: /etc/pki/rabbitmq/key
              readOnly: true
            - name: fedora-messaging-cert-volume
              mountPath: /etc/pki/rabbitmq/cert
              readOnly: true
            - name: temp-volume
              mountPath: /var/tmp
            - name: krb-config-volume
              mountPath: /etc/krb5
              readOnly: true
        volumes:
        - name: config-volume
          configMap:
            name: the-new-hotness-configmap
        - name: fedora-messaging-ca-volume
          secret:
            secretName: the-new-hotness-fedora-messaging-ca
        - name: fedora-messaging-key-volume
          secret:
            secretName: the-new-hotness-fedora-messaging-key
        - name: fedora-messaging-cert-volume
          secret:
            secretName: the-new-hotness-fedora-messaging-cert
        - name: temp-volume
        - name: keytab-volume
          secret:
            secretName: the-new-hotness-keytab
        - name: krb-config-volume
          configMap:
            name: krb5-configmap
    triggers:
    - imageChangeParams:
        automatic: true
        containerNames:
          - the-new-hotness
        from:
          kind: ImageStreamTag
          name: the-new-hotness:latest
          namespace: the-new-hotness
      type: ImageChange
    - type: ConfigChange
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    labels:
      app: the-new-hotness
      service: the-new-hotness-redis
    name: the-new-hotness-redis
  spec:
    replicas: 1 # Never change this to more or less than ONE!
    selector:
      app: the-new-hotness
      deploymentconfig: the-new-hotness-redis
    template:
      metadata:
        labels:
          app: the-new-hotness
          deploymentconfig: the-new-hotness-redis
      spec:
        containers:
        - name: the-new-hotness-redis
          image: the-new-hotness-redis:latest
          resources: {}
          env:
          - name: REDIS_PASSWORD
            value: "{{ hotness_redis_pass }}"
    triggers:
    - type: ConfigChange
    - type: ImageChange
      imageChangeParams:
        automatic: true
        containerNames:
        - the-new-hotness-redis
        from:
          kind: ImageStreamTag
          name: the-new-hotness-redis:latest
kind: List
metadata: {}
